/*
* 	Copyright (c) Altera Corporation 2002.
* 	All rights reserved.
*
*	Timer.h
*
*   Function prototypes and definitions to use the Timer routines
*/


#ifndef TIMER_H
#define TIMER_H

#define TIMER00_TYPE (volatile unsigned int*)
#define HSN_1USEC (125)//temp zll
/*
*	Function prototypes
*/

void init_timer(void); //sbvr

void delay(unsigned);
void set_timer_type(int);
int get_timer_type(void);
void reset_timer0(void);
void set_timer_limit(int);
int check_timer_expired(void);
int stop_timer(void);
int current_timer_value(void);

int get_timer_interrupt();

#endif /* TIMER_H */
